package org.jeeasy.system.modules.user.domain.model;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

/**
 * @author AlpsDDJ
 * @date 2020/11/10
 */
@Getter
@Setter
@Schema(description = "通过旧密码验证修改新密码Model")
public class ChangePasswordByOldPasswordModel {

    @Schema(description = "用户id")
    @NotBlank(message = "用户id不能为空")
    private String id;

    @Schema(description = "旧密码")
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    @Schema(description = "新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

}
